<h2><?php echo __('New Comments') ?></h2>
<ul class="action-mn">
	<li><a href="#" class="show"><?php echo __('Allow') ?></a></li>
	<li><a href="#" class="hide"><?php echo __('Not Allow') ?></a></li>
</ul>
<table cellpadding="0" cellspacing="0" class="table-listing">
	<tr>
			<th class="col-no">
				<input type="checkbox" id="check-all" title="<?php echo __('Check All') ?>" class="rcheckbox" />
			</th>
			<th><?php echo __('Name') ?></th>
			<th><?php echo __('Content') ?></th>
			<th><?php echo __('Object') ?></th>
			<th style="width: 80px;"><?php echo __('Action') ?></th>
	</tr>
	<?php if(isset($comments) && count($comments) > 0){ ?>
		<?php foreach($comments as $i => $comment){ ?>
		<tr>
			<td><input type="checkbox" class="check-item" /></td>
			<td><?php echo $comment['Comment']['name'] ?></td>
			<td><?php echo $comment['Comment']['content'] ?></td>
			<td style="text-align:center;"><?php echo $comment['Comment']['owner_model']?></td>
			<td>
				<span class="act-lk" style="margin:0px; padding:0px;" onclick="notAllowComment(<?php echo $comment['Comment']['id'] ?>, '<?php echo $this->Html->url(array('action' => 'notAllowComment', 'controller' => 'backend')) ?>');">
					<?php echo __('Deny') ?></span> | 
				<span class="act-lk" style="margin:0px; padding:0px;" onclick="notAllowComment(<?php echo $comment['Comment']['id'] ?>, '<?php echo $this->Html->url(array('action' => 'notAllowComment', 'controller' => 'backend')) ?>');">
					<?php echo __('Allow') ?></span>
			</td>
		</tr>
		<?php } 
		}else{
	?>
		<tr>
			<td colspan=5> <?php echo __('No Records') ?></td>
		</tr>			
	<?php } ?>
</table>
